<?php
class Imageupload_Data_Saveimage implements Imageupload_Data_Mainable{
    
    private $core_controller_dataoperation;
    
    public function __construct() {
        $this->core_controller_dataoperation = new Core_Controller_Dataoperation;
    }
    
    public function main(array $variables = null){
        $variables['query'] = "INSERT INTO page_images(image_path, image_name, image_description) VALUES('".SITE_ROOT."/upload/', '".$variables['file_name']."', '".$variables['post']['image_description'].''."');";
        //echo $variables['query'];
        return $this->core_controller_dataoperation->main($variables);
    }
}
